<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/5/22
 * Time: 下午8:01
 */

namespace app\index\model;


use think\Model;

class Dist extends Model
{
    protected $table = 't_dist';
    public static function getDistNameById($id){
        $dist = self::find($id);
        return $dist['dist_name'];

    }
}